package net.realsee.service.wcs.data;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.data.WcsDefectType;
import net.realsee.domain.wcs.data.vo.WcsDefectTypeVo;
import net.realsee.domain.wcs.data.bo.WcsDefectTypeBo;
import net.realsee.framework.core.page.TableDataInfo;
import net.realsee.framework.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 不良类型定义Service接口
 *
 * @author realsee
 * @date 2023-08-24
 */
public interface IWcsDefectTypeService extends IService<WcsDefectType> {

    /**
     * 查询不良类型定义
     */
    WcsDefectTypeVo selectVoById(Long id);

    /**
     * 查询不良类型定义列表
     */
    TableDataInfo<WcsDefectTypeVo> selectVoPage(WcsDefectTypeBo bo, PageQuery pageQuery);

    /**
     * 查询不良类型定义列表
     */
    List<WcsDefectTypeVo> selectVoList(WcsDefectTypeBo bo);

    /**
     * 新增不良类型定义
     */
    Boolean insertByBo(WcsDefectTypeBo bo);

    /**
     * 修改不良类型定义
     */
    Boolean updateByBo(WcsDefectTypeBo bo);

    /**
     * 校验并批量删除不良类型定义信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
